.friend-links-group {
    width: 100%;
    display: block;
    overflow: hidden;
    /* 清除浮动 */
    clear: both;
}

/* 原有的友链样式加上 .friend-links-group 前缀 */
.friend-links-group .friend-link-item {
    position: relative;
    width: calc(33.333% - 12px);
    height: 90px;
    margin: 6px;
    float: left;
    display: flex;
    border: 1px solid #e3e8f7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 16px -4px rgba(44, 45, 48, 0.047);
    transition: all 0.3s ease-in-out;
    transform: translateZ(0);
    overflow: hidden;
}



.friend-links-group .friend-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 4px;
    color: #363636;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px 4px 0 0;
}

.friend-links-group .friend-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    margin: 15px 20px 15px 15px;
    border-radius: 32px;
    object-fit: cover;
    background: hsl(250, 12%, 10%);
    transition: all 0.3s ease;
}

.friend-links-group .friend-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 90px);
    height: fit-content;
}

.friend-links-group .friend-name {
    text-align: left;
    line-height: 20px;
    color: #363636;
    padding: 0 10px 0 0;
    font-weight: 700;
    font-size: 17px;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-links-group .friend-desc {
    text-align: left;
    padding: 5px 10px 0 0;
    color: #363636;
    font-size: 0.93em;
    opacity: 0.7;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    text-overflow: ellipsis;
}

/* 关键：提高 hover 样式的特异性 */
.friend-links-group .friend-link-item:hover {
    background: #3366ff;
    border: 1px solid #3366ff;
    box-shadow: 0 8px 12px -3px rgba(66, 89, 239, 0.137);
    transform: scale(1);
}

.friend-links-group .friend-link-item:hover .friend-avatar {
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0.5rem;
    min-width: 0;
    min-height: 0;
}

.friend-links-group .friend-link-item:hover .friend-info {
    min-width: calc(100% - 20px);
}

.friend-links-group .friend-link-item:hover .friend-name,
.friend-links-group .friend-link-item:hover .friend-desc {
    color: #fff;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .friend-links-group .friend-link-item {
        width: calc(50% - 12px);
    }
}

@media screen and (max-width: 600px) {
    .friend-links-group .friend-link-item {
        width: calc(100% - 12px);
    }
}